﻿using Autodesk.AutoCAD.Runtime;
using AcCore = Autodesk.AutoCAD.ApplicationServices.Core;

[assembly: ExtensionApplication(typeof(ObjectArxFody.MyCommand))]
[assembly: CommandClass(typeof(ObjectArxFody.MyCommand))]

namespace ObjectArxFody
{
    public class MyCommand : IExtensionApplication
    {
        [CommandMethod("Test")]
        public static void TestMethod()
        {
            var editor = AcCore.Application.DocumentManager.CurrentDocument.Editor;
            editor.WriteMessage("\nTest!\n");

            var win = new DXWindow1();
            win.ShowDialog();
        }

        void IExtensionApplication.Initialize()
        {
        }

        void IExtensionApplication.Terminate()
        {
        }
    }
}